﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotShot.Service
{
    public static class Common
    {
        public static bool TraceMessages;
        public static readonly DateTime StartupTime = DateTime.UtcNow;
        public static int StartupDelayMs = 10000;

        static Common()
        {
            bool b;
            int i;
            if (Boolean.TryParse(ConfigurationManager.AppSettings["Common.TraceMessages"], out b))
                TraceMessages = b;
            if (Int32.TryParse(ConfigurationManager.AppSettings["Common.StartupDelayMs"], out i))
                StartupDelayMs = i;
        }

    }
}
